<?php

class Model_Contact extends Zend_Db_Table_Abstract {

    protected $_name = 'inquiry';

    public function createInquiry($name, $email, $subject, $message) {
        // create a new row in the inquiry table
        $row = $this->createRow();
        // set the row data
        $row->name = $name;
        $row->email = $email;
        $row->subject = $subject;
        $row->message = $message;
        $dateObject = new Zend_Date();
        $row->datecreated = date('Y-m-d h:i:s');
        $row->ip = $_SERVER["REMOTE_ADDR"];
        $row->active = "1";
        // save the new row
        return $row->save();
    }

}

?>